package org.example.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
@RabbitListener(queues = "object.queue")
public class QueueT {
    @RabbitHandler
    public void Twww(Map<String,Object> map){
        System.out.println("消费者");
        System.out.println(map);
    }
}
